﻿using Inovout.ArcGis;
using Inovout.Gis;
using ESRI.ArcGIS.Controls;

namespace ArgGisUI
{
    public class XMapControl : AxMapControl
    {
        private MapInfo map;
        public MapInfo MapInfo
        {
            get { return map; }
        }
        
        public void Load(string fileName)
        {
            this.LoadMxFile(fileName);
            map = new MapInfo(this.Map);
            MapObject.Current = map as IMapInfo;
        }
    }
}
